package com.hp.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.hp.bean.MiaoShu;
import com.hp.bean.User;

public interface userdao {
	@Select("select * from User where username=#{0} and userpasw=#{1};")
	public User listuser(String username,String userpasw);
	@Select("select * from User where username=#{username}")
	public User zhuceuser(String username);
	@Insert("insert into user(id,username,userpasw,userhp,shuihao) values(#{id},#{username},#{userpasw},#{userhp},#{shuihao});")
	public int insertuser(User user);
	@Insert("insert into miaoshu(mid,gjz,wybt,urld,ms) values(#{mid},#{gjz},#{wybt},#{urld},#{ms})")
	public int insertMi(MiaoShu mi);
}
